// 应用全局配置
const serverUrl = 'http://localhost:10011/'; // 前端页面地址
window.config = {
	common: {
		sysVersion: '1.0.0', // 系统版本
		sysAppId: '0', // 默认加载appId(0为视频大数据， 1为视图库，2为智鉴，3为控制台，4为融智云）
		sysTitle: '视频大数据h5版本', // 系统名称
		aboutSystem: '视频大数据h5版本', // 关于系统
		sysCopyright:
			'COPYRIGHT  2018 渝ICP备09080754号 重庆中科云从科技有限公司 ALL RIGHT RESEVED.CLOUDWALK TECHNOLOGY CO..LED..', // 版权声明
		sysAuthExpires: '为避免影响系统正常使用，请及时联系云从工作人员：400-151-5992', // 授权到期

		// socketUrl: 'ws://10.128.129.67:14500/', // webSocket地址
		// baseUrl: 'http://10.128.129.67:10006/spsz/',
		// imgHeadUrl: 'http://10.128.129.67:14101/', // 图片地址(走水印)
		socketUrl: 'ws://20.17.1.53:14500/', // webSocket地址
		// baseUrl: 'http://10.81.142.190:11006/spsz/',
		baseUrl: '/dev1',
		baseUrl2: 'http://20.17.1.53:8246/api',
		imgHeadUrl: 'http://10.81.142.190:11005/', // 图片地址(走水印)

		ajaxConfig: {
			longTimeOut: 600000, // 长链接请求超时时间
			shortTimeOut: 300000 // 短连接请求超时时间
		},
		// 离线地图-start
		mapUrl: 'http://10.128.18.65:8001/cq_gaode_arcgis/{z}/{x}/{y}.png', // 浅色版-地图服务地址
		mapUrlBlack: 'http://10.128.18.65:8001/cq_gaode_arcgis/{z}/{x}/{y}.png', // 深色版-地图服务地址(只适用于ie)
		mapUrlWx: 'http://10.128.18.65:8001/gaode_wx_chognqing_arcgis//{z}/{x}/{y}.png', // 卫星-地图服务地址
		mapType: 'gaode', // 地图服务类型
		// 离线地图-end
		mapZoom: 14, // 地图默认缩放层级
		mapMaxZoom: 18, // 地图最大缩放层级
		mapMinZoom: 13, // 地图最小缩放层级
		mapMaxClusterZoom: 15, // 地图最大聚合层级（超过这个层级就不聚合）
		mapCenter: [29.518907, 106.516154], // 地图中心点
		mapMaxBounds: {
			// 地图边界{} 不限制边界
			northEast: [(29.427302, 106.406965)],
			southWest: [(29.680709, 106.714497)]
		},
		// 上传图片限制
		pictureMaxSize: 10 * 1024 * 1024,
		appMode: 0, // 0：原生壳子模式，1：自制壳子模式
		// 服务总线相关配置-start
		openSecurity: false, // 是否开启认证
		debugMode: false, // 总线-调试模式
		securityInfo: {
			appId: localStorage.getItem("appId")?localStorage.getItem("appId"):'78FAEB5F79CFEC4EC6097A3C98AAA2B9',
			userName: '500084',
			// url: 'http://192.168.2.39:8246',
			url: 'http://20.17.1.53:8246',  //模拟总线
			type: 'private'
		},
		resourceList: [
			   {
			    ident: 'yc-disp-face-monitor-get',
			    url: '/spsz/disp/face/monitor/get',
			    describe: '人脸布控详情'
			   },
			   {
			    ident: 'yc-disp-vehicle-monitor-pages',
			    url: '/spsz/disp/vehicle/monitor/pages',
			    describe: '车辆布控列表'
			   },
			   {
			    ident: 'yc-disp-vehicle-monitor-get',
			    url: '/spsz/disp/vehicle/monitor/get',
			    describe: '车辆布控详情'
			   },
			{
				ident: 'yc-auth-login',
				url: '/spsz/auth/login',
				describe: '登录'
			},
			{
				ident: 'yc-manage-user-get',
				url: '/spsz/manage/user/get',
				describe: '用户信息'
			},
			{
				ident: 'yc-fileUpload',
				url: '/spsz/fileUpload',
				describe: '文件上传'
			},
			{
				ident: 'yc-watermark-queryBase64',
				url: '/spsz/watermark/queryBase64',
				describe: 'Base64获取'
			},
			{
				ident: 'yc-device-camera-get',
				url: '/device/camera/get',
				describe: '查询单个设备信息'
			},
			{
				ident: 'yc-tree-treeNodeCount',
				url: '/spsz/tree/treeNodeCount',
				describe: '获取设备树信息'
			},
			{
				ident: 'yc-device-treeList',
				url: '/spsz/device/treeList',
				describe: '异步节点列表'
			},
			{
				ident: 'yc-device-pages',
				url: '/spsz/device/pages',
				describe: '设备树分页数据'
			},
			{
				ident: 'yc-capture-face-search',
				url: '/spsz/capture/face/search',
				describe: '人脸搜索抓拍库分页查询'
			},
			{
				ident: 'yc-face-recog',
				url: '/spsz/face/recog',
				describe: '人脸搜索注册库分页查询'
			},
			{
				ident: 'yc-capture-person-search',
				url: '/spsz/capture/person/search',
				describe: '人体搜索抓拍库分页查询'
			},
			{
				ident: 'yc-capture-vehicle-search',
				url: '/spsz/capture/vehicle/search',
				describe: '车辆搜索抓拍库分页查询'
			},
			{
				ident: 'yc-capture-noVehicle-search',
				url: '/spsz/capture/noVehicle/search',
				describe: '非机动车搜索抓拍库分页查询'
			},
			{
				ident: 'yc-common-dict-ext-list',
				url: '/spsz/common/dict/ext/list',
				describe: '数据字典'
			},
			{
				ident: 'yc-vehicledb-list',
				url: '/spsz/vehicledb/list',
				describe: '车辆库查询'
			},
			{
				ident: 'yc-facedb-list',
				url: '/spsz/facedb/list',
				describe: '人像库查询'
			},
			{
				ident: 'yc-manage-user-pages',
				url: '/spsz/manage/user/pages',
				describe: '人员列表查询'
			},
			{
				ident: 'yc-disp-setting-list',
				url: '/spsz/disp/setting/list',
				describe: '报警等级查询'
			},
			{
				ident: 'yc-disp-vehicle-monitor-add',
				url: '/spsz/disp/vehicle/monitor/add',
				describe: '车辆布控新增'
			},
			{
				ident: 'yc-face-disp-alarm-pages',
				url: '/spsz/face/disp/alarm/pages',
				describe: '人脸预警分页查询'
			},
			{
				ident: 'yc-vehicle-disp-alarm-pages',
				url: '/spsz/vehicle/disp/alarm/pages',
				describe: '车辆预警分页查询'
			},
			{
				ident: 'yc-face-disp-alarm-get',
				url: '/spsz/face/disp/alarm/get',
				describe: '黑名单报警详情'
			},
			{
				ident: 'yc-capture-face-flow-gets',
				url: '/spsz/capture/face/flow/gets',
				describe: '人脸抓拍详情'
			},
			{
				ident: 'yc-capture-vehicle-flow-gets',
				url: '/spsz/capture/vehicle/flow/gets',
				describe: '车辆抓拍详情'
			},
			{
				ident: 'yc-capture-person-flow-gets',
				url: '/spsz/capture/person/flow/gets',
				describe: '人体抓拍详情'
			},
			{
				ident: 'yc-face-disp-alarm-judged',
				url: '/spsz/face/disp/alarm/judged',
				describe: '人脸报警研判'
			},
			{
				ident: 'yc-vehicle-disp-alarm-judged',
				url: '/spsz/vehicle/disp/alarm/judged',
				describe: '车辆报警研判'
			},
			{
				ident: 'yc-disp-face-monitor-pages',
				url: '/spsz/disp/face/monitor/pages',
				describe: '布控分页查询'
			},
			{
				ident: 'yc-disp-face-monitor-add',
				url: '/spsz/disp/face/monitor/add',
				describe: '新增布控'
			},
			{
				ident: 'yc-disp-setting-page',
				url: '/spsz/disp/setting/page',
				describe: '报警等级查询'
			},
			{
				ident: 'yc-ai-structure-recognize',
				url: '/spsz/ai/structure/recognize',
				describe: 'ai检测'
			},
			{
				ident: 'yc-device-camera-deviceClassCount',
				url: '/spsz/device/camera/deviceClassCount',
				describe: '设备数量信息'
			},
			{
				ident: 'yc-device-map-agg',
				url: '/spsz/device/map/agg',
				describe: '地图撒点信息'
			},
			{
				ident: 'yc-device-map-queryByCid',
				url: '/spsz/device/map/queryByCid',
				describe: '聚合物打开信息'
			},
			{
				ident: 'yc-manage-org-list',
				url: '/spsz/manage/org/list',
				describe: '组织列表信息'
			},
			{
				ident: 'yc-watermark-queryBase64',
				url: '/watermark/queryBase64',
				describe: 'Base64获取'
			},
			{
				ident: 'yc-uploadBase64',
				url: '/spsz/uploadBase64',
				describe: 'base64上传'
			},
			{
				ident: 'yc-device-video-pages',
				url: '/spsz/device/video/pages',
				describe: '离线视频分页查询'
			},
			{
				ident: 'yc-manage-region-list',
				url: '/spsz/manage/region/list',
				describe: '区域分页查询'
			},
			{
				ident: 'yc-disp-face-monitor-update-status',
				url: '/spsz/disp/face/monitor/update/status',
				describe: '布控任务启停'
			},
			{
				ident: 'yc-capture-noVehicle-flow-gets',
				url: '/spsz/capture/noVehicle/flow/gets',
				describe: '非机动车抓拍详情'
			}
		]
		// 服务总线相关配置-end
	}
};
module.exports = {
  baseUrl: '/dev1',
  baseUrl2: '/dev2',//消息同步服务器
  // 应用信息
  appInfo: {
    // 应用名称
    name: "ruoyi-app",
    // 应用版本
    version: "1.0.0",
    // 应用logo
    logo: "/static/logo.png",
    // 官方网站
    site_url: "http://ruoyi.vip",
    // 政策协议
    agreements: [{
        title: "隐私政策",
        url: "https://ruoyi.vip/protocol.html"
      },
      {
        title: "用户服务协议",
        url: "https://ruoyi.vip/protocol.html"
      }
    ]
  }
}
